package com.mrzhou.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("cloud_role")
public class Role {

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty("权限父级id")
    private Long parentId;

    @ApiModelProperty("权限名称")
    private String roleName;

    @ApiModelProperty("权限别名, 校验使用")
    private String roleAlias;

    @TableLogic // 逻辑删除注解
    @ApiModelProperty("逻辑删除, 0删除, 1正常")
    private Integer isDelete;

}
